package org.dromara.school.domain.bo;

import org.dromara.school.domain.Teacher;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 教师管理业务对象 teacher
 *
 * @author fliay
 * @date 2025-05-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Teacher.class, reverseConvertGenerate = false)
public class TeacherBo extends BaseEntity {

    /**
     * id
     */
    private Long teacherId;

    /**
     * 教师姓名
     */
    @NotBlank(message = "教师姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String teacherName;

    /**
     * 性别
     */
    private Long sex;

    /**
     * 入职时间
     */
    @NotNull(message = "入职时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date joinDate;

    /**
     * 民族
     */
    @NotBlank(message = "民族不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nation;

    /**
     * 在岗状态
     */
    @NotBlank(message = "在岗状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String onDutyStatus;

    /**
     * 在职状态
     */
    @NotBlank(message = "在职状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String onJobStatus;

    /**
     * 主学科id
     */
    private Long mainDisciplineId;

    /**
     * 职位
     */
    private String position;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String telphone;

    /**
     * 省
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 区
     */
    private String districts;

    /**
     * 密码
     */
    private String password;

    /**
     * 备注
     */
    private String remark;

    //所属校区
    @Size(min = 1, message = "所属校区不能为空")
    @NotNull(message = "所属校区不能为空")
    private List<Long> schoolCampusId;

//    //校区名称，用于回显
////
//    private List<String> campusNames;

    //籍贯
    private String[] nativePlace;

    //副学科
    private List<Long> subDisciplineId;
}
